colorAdminApp.controller('tmInterviewTaskController', function($scope,$cookieStore,$compile,$rootScope,$http,$state,$stateParams,modalService) {
	
	
	
	$scope.compleate=function(approved){
		
	
		var entity={};
		entity["tmApproved"]=approved;
		entity["id"]=$stateParams.id;
    	
    	$http.post('api/workflow/process/task/complete',{params:entity}).success(function(data, status, headers, config) {
			
    		$("body").unblock();
    		
    		modalService.showAlertModal('注意',data.message);
			
    		if(data.status==1){
    			//如果操作成功，跳转到待代任务页面
    			$state.go("main.WORKFLOW_PROCESS_TASK_ASSIGNEE",{});	
    		}
			
		}).error(function(data, status, headers, config) {
			$("body").unblock();
       });  
    	
	};
	
	
		
    
	
});
